const apiHost = 'http://localhost:5173/api'
/**
 * 账户相关的接口
 */
const AccountApis = {
  regUrl: apiHost + '/accounts/reg',
  loginUrl: apiHost + '/accounts/login',
  logoutUrl: apiHost + '/accounts/logout',
  getInfoUrl: apiHost + '/accounts/info'
}

// 其他接口
const SystemApis = {
  // 轮播图
  bannerListUrl: apiHost + '/system/slider_list',
  // 发送验证码
  sendSmsCodeUrl: apiHost + '/system/send_sms'
}

// 景点相关接口
const SightApis = {
  sightListUrl: apiHost + '/sight/list',
  // 从缓存读取
  sightListCacheUrl: apiHost + '/sight/cache/list',
  sightDetailUrl: apiHost + '/sight/detail',
  sightInfoUrl: apiHost + '/sight/info',
  sightTicketUrl: apiHost + '/sight/tickets',
  sightCommentUrl: apiHost + '/sight/comment',
  // 门票详细信息接口
  ticketDetailUrl: apiHost + '/sight/ticket/detail/'
}

// 订单相关接口
const OrderApis = {
  orderSubmitUrl: apiHost + '/order/ticket/submit',
  // 包括订单查询、订单支付、订单取消、订单删除
  orderDetailUrl: apiHost + '/order/detail',
  // 订单列表，根据查询参数获取
  orderListUrl: apiHost + '/order/list'
}

export { AccountApis, SystemApis, SightApis, OrderApis }
